﻿@model MvcOrganizer.Models.Report
@{
    ViewBag.Title = "Contact";
}

<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
</hgroup>

<section class="contact">
    <header>
        <h2>Report
        </h2>
    </header>
    @if (ViewData["Success"] != null)
    {
        <div class="green">
            <p>@ViewData["Success"].ToString()</p>
        </div>
    }
    @using (Html.BeginForm("Submit", "Home"))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(false)
        
        @Html.Hidden("UserID", "0")
        @Html.Hidden("State", "Initial")
        @Html.Hidden("CreatedDate", @DateTime.Now)
        
        <div class="form_settings">
            <p>
                @Html.LabelFor(model => model.ReportType)
                @Html.DropDownListFor(model => model.ReportType, new SelectList(new List<Object>{ 
                       new { value = "Bug" , text = "Bug"  },
                       new { value = "Sugestion" , text = "Sugestion" }                     
                    }, "value", "text", 0))
            </p>
            <p>
                @Html.LabelFor(model => model.Message)
                @Html.TextAreaFor(model => model.Message)
            </p>
            <p style="padding-top: 15px">
                <span>&nbsp;</span>
                <input type="submit" class="submit" value="Submit" />
            </p>
        </div>
    }
</section>
